package cn.yuanqiao.archive.formManage.detail.service.impl;

import cn.yuanqiao.archive.formManage.detail.domain.YqformManageDetail;
import cn.yuanqiao.archive.formManage.detail.mapper.YqformManageDetailMapper;
import cn.yuanqiao.archive.formManage.detail.service.IYqformManageDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 表单明细Service业务层处理
 * 
 * @author lyk
 * @date 2023-06-25
 */
@Service
public class YqformManageDetailServiceImpl implements IYqformManageDetailService 
{
    @Autowired
    private YqformManageDetailMapper yqformManageDetailMapper;

    /**
     * 查询表单明细
     * 
     * @param detailId 表单明细主键
     * @return 表单明细
     */
    @Override
    public YqformManageDetail selectYqformManageDetailByDetailId(String detailId)
    {
        return yqformManageDetailMapper.selectYqformManageDetailByDetailId(detailId);
    }

    /**
     * 查询表单明细列表
     * 
     * @param yqformManageDetail 表单明细
     * @return 表单明细
     */
    @Override
    public List<YqformManageDetail> selectYqformManageDetailList(YqformManageDetail yqformManageDetail)
    {
        return yqformManageDetailMapper.selectYqformManageDetailList(yqformManageDetail);
    }

    /**
     * 新增表单明细
     * 
     * @param yqformManageDetail 表单明细
     * @return 结果
     */
    @Override
    public int insertYqformManageDetail(YqformManageDetail yqformManageDetail)
    {
        return yqformManageDetailMapper.insertYqformManageDetail(yqformManageDetail);
    }

    /**
     * 修改表单明细
     * 
     * @param yqformManageDetail 表单明细
     * @return 结果
     */
    @Override
    public int updateYqformManageDetail(YqformManageDetail yqformManageDetail)
    {
        return yqformManageDetailMapper.updateYqformManageDetail(yqformManageDetail);
    }

    /**
     * 批量删除表单明细
     * 
     * @param detailIds 需要删除的表单明细主键
     * @return 结果
     */
    @Override
    public int deleteYqformManageDetailByDetailIds(String[] detailIds)
    {
        return yqformManageDetailMapper.deleteYqformManageDetailByDetailIds(detailIds);
    }

    /**
     * 删除表单明细信息
     * 
     * @param detailId 表单明细主键
     * @return 结果
     */
    @Override
    public int deleteYqformManageDetailByDetailId(String detailId)
    {
        return yqformManageDetailMapper.deleteYqformManageDetailByDetailId(detailId);
    }

    @Override
    public List<YqformManageDetail> selectTableColumnsByTableName(YqformManageDetail setTableName) {
        return yqformManageDetailMapper.selectTableColumnsByTableName(setTableName);
    }

    @Override
    public int batchInsertYqformManageDetail(List<YqformManageDetail> yqformManageDetails) {
        return yqformManageDetailMapper.batchInsertYqformManageDetail(yqformManageDetails);
    }

    @Override
    public int deleteYqformManageDetailByManageId(Long tableId,String tenantCode) {
        return yqformManageDetailMapper.deleteYqformManageDetailByManageId(tableId,tenantCode);
    }

    @Override
    public List<YqformManageDetail> selectYqformManageDetailListByManageId(YqformManageDetail yqformManageDetail) {
        return yqformManageDetailMapper.selectYqformManageDetailListByManageId(yqformManageDetail);
    }
}
